package cn.kgc.crowdfundingadminspringboot.service;

import cn.kgc.crowdfundingadminspringboot.pojo.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

        public PageInfo<Role> queryForKeywordWithPage(
                Integer pageNum,
                Integer pageSize,
                String keyword);

        public List<Role> getRoleListByIdList(List<Integer> roleIdList);
        public void batchRemove(List<Integer> roleIdList);
        public void saveRole(String roleName);
        public void updateRole(Role role);
        //查询已分配角色
        public List<Role> getAssignedRoleList(Integer adminId);
        //查询未分配角色
        public List<Role> getUnAssignedRoleList(Integer adminId);

        //更新关系
        public void updateRelationship(Integer adminId, List<Integer> roleIdList);


}
